package BookStore.managers_impl.CatalogBookStoreMgr;

import Util.CSVBookParser;
import BookStore.common.Book;
import BookStore.managers.CatalogBookStoreMgr_Iface.CatalogBookStoreMgrPOA;

/**
 * Manager aiming to manage the book store catalog
 * @author Loup
 *
 */
public class CatalogBookStoreMgr extends CatalogBookStoreMgrPOA{
	private String csv;

	public CatalogBookStoreMgr(String csv){
		this.csv = csv;
	}
	
	@Override
	public Book[] askCatalog() {
		CSVBookParser parser = new CSVBookParser();
		return parser.getCatalog(csv);
	}

}
